package cvo.pro4.chess.client.GUI.workKevinJo;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Grid;
import com.google.gwt.user.client.ui.Widget;

public class GraveyardWidget extends Composite {

	//private Integer indexRow = 0, indexCol = 0;
	private final static Integer ROW = 8;
	private final static Integer COL = 2;
	
	/**
	 * @author Kevin
	 */
	public GraveyardWidget() {
		/* initWidget(uiBinder.createAndBindUi(this)); */
		Grid g = new Grid(GraveyardWidget.ROW, GraveyardWidget.COL);
		// Put some values in the grid cells.
		for (int row = 0; row < GraveyardWidget.ROW; ++row) {
			for (int col = 0; col < GraveyardWidget.COL; ++col) {
				g.setText(row, col, "" + row + ", " + col);
				g.getCellFormatter().setWidth(row, col, "80px");
			}
		}
	}
	
	/**
	 * @author Kevin
	 * @param w this is a PieceWidget that we get from the
	 */
	public void addWidgetToGraveyard(Widget w){
		
	}

}
